package com.cai.demo.response;

import lombok.Getter;

/**
 * @Title: StatusCode
 * @Author RuoLi
 * @Package com.cai.demo.response
 * @Date 2023/12/14 22:13
 * @description: 状态码
 */
@Getter
public enum StatusCode {
    SUCCESS(200, "OK"),
    FAIL(400, "FAIL"),
    INPUT_ERROR(500, "INPUT_ERROR");

    private final Integer code;
    private final String message;

    StatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
